package com.fxd.feigns;

import com.fxd.core.util.RR;
import com.fxd.feigns.fallback.CouponFallbackFactory;
import com.fxd.model.coupon.SpuBoundsEntity;
import com.fxd.common.param.SkuReductionParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "shopping-coupon", fallbackFactory = CouponFallbackFactory.class)
public interface CouponFeign {

    /**
     * 保存积分信息
     *
     * @param spuBounds
     * @return
     */
    @PostMapping("/coupon/spubounds/save")
    RR saveSpuBounds(@RequestBody SpuBoundsEntity spuBounds);

    /**
     * 保存满减信息
     *
     * @param skuReductionParam
     * @return
     */
    @PostMapping("/coupon/skufullreduction/save/info")
    RR saveReduction(@RequestBody SkuReductionParam skuReductionParam);
}
